package com.zheng.redpacket.mdg.mapper;

import com.zheng.redpacket.mdg.model.Praise;
import java.util.List;

import com.zheng.redpacket.mdg.model.PraiseRankDto;
import org.apache.ibatis.annotations.Param;

public interface PraiseMapper {
    int insertSelective(Praise record);

    Praise selectByBlogUserId(@Param("blogId") Integer blogId, @Param("userId") Integer userId);

    int countByBlogId(@Param("blogId") Integer blogId);

    int cancelPraiseBlog(@Param("blogId") Integer blogId, @Param("userId") Integer userId);

    List<PraiseRankDto> getPraiseRank();
}